Skip to content

Feature/chair stars#19

Merged
vahldiek merged 3 commits into
ReproDB:mainfrom
vahldiek:feature/chair-stars
Jun 23, 2026
Merged

Feature/chair stars#19
vahldiek merged 3 commits into
ReproDB:mainfrom
vahldiek:feature/chair-stars

Conversation

@vahldiek

Copy link
Copy Markdown
Member

Summary\nDisplay chair roles as stars in author and institution profiles to visually highlight AE leadership experience.\n\n## Changes\n- Authors: Direct 1:1 mapping (1 chair = 1★)\n- Institutions: Compressed mapping (max(1, floor(chairs/2)))\n - 1 chair = 1★\n - 2-3 chairs = 1★\n - 4-5 chairs = 2★\n - 6-7 chairs = 3★\n - etc.\n\n## Files Modified\n- src/assets/js/reprodb-profile.js: Added chairDisplayAuthor() and chairDisplayInstitution() helper functions with configurable star formulas\n- src/assets/js/reprodb-profile-page.js: Integrated star display in profile score cards and contributor table\n- src/assets/css/reprodb-profile.css: Added .chair-stars styling with golden color (#d18c00 light / #f5c44c dark)\n\n## Rationale\nThe compressed formula for institutions avoids visual inflation while still recognizing leadership. Authors use direct stars since chair counts are sparser (max 5). Both use max(1, floor(...)) so single chairs receive visual credit.

vahldiek added 3 commits June 23, 2026 12:58
Add https://www.googletagmanager.com to script-src and
https://www.google-analytics.com, https://analytics.google.com,
https://www.googletagmanager.com to connect-src so that the
GA gtag script set via jekyll google_analytics config loads
without CSP violations.
- Authors display 1 star per chair role (direct 1:1 mapping)
- Institutions display stars = max(1, floor(chairs/2)) for compressed view
- Formula: 1 chair = 1★, 2-3 chairs = 1★, 4-5 chairs = 2★, etc.
- Added chair-stars CSS class with golden color styling
- Integrated star display in profile score cards and contributor tables
- Stars appear in author/institution detail pages and overview tables
## Summary
Display chair roles as stars in author and institution profiles to visually highlight AE leadership experience.

## Changes
- **Authors**: Direct 1:1 mapping (1 chair = 1★)
- **Institutions**: Compressed mapping (max(1, floor(chairs/2)))
  - 1 chair = 1★
  - 2-3 chairs = 1★
  - 4-5 chairs = 2★
  - 6-7 chairs = 3★
  - etc.

## Files Modified
- `src/assets/js/reprodb-profile.js`: Added `chairDisplayAuthor()` and `chairDisplayInstitution()` helper functions with configurable star formulas
- `src/assets/js/reprodb-profile-page.js`: Integrated star display in profile score cards and contributor table
- `src/assets/css/reprodb-profile.css`: Added `.chair-stars` styling with golden color (#d18c00 light / #f5c44c dark)

## Rationale
The compressed formula for institutions avoids visual inflation while still recognizing leadership. Authors use direct stars since chair counts are sparser (max 5). Both use `max(1, floor(...))` so single chairs receive visual credit.
@vahldiek vahldiek merged commit c4bd4e7 into ReproDB:main Jun 23, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant